class CreateProducts < ActiveRecord::Migration
  def change
    create_table :products do |t|
      t.string :product_name, :null => false
      t.string :product_img_path, :null => false
      t.integer :sort_id, :null => false
      t.decimal :product_price, :null => false
      t.integer :product_count, :null => false
      t.string :product_origin, :null => false
      t.date :date_of_production, :null => false
      t.text :product_descirbe, :null => false

      t.timestamps
    end
  end
end
